using UnityEngine;

public class TrackWheelsRotator : MonoBehaviour
{
	public Transform sourceWheel;

	public Transform[] outputWheelsR;

	public Transform[] outputWheelsL;

	private void Update()
	{
		Quaternion localRotation = sourceWheel.localRotation;
		localRotation.x = 0f;
		localRotation.y = 0f;
		Transform[] array = outputWheelsR;
		foreach (Transform transform in array)
		{
			transform.localRotation = localRotation;
		}
		localRotation.z *= -1f;
		Transform[] array2 = outputWheelsL;
		foreach (Transform transform2 in array2)
		{
			transform2.localRotation = localRotation;
		}
	}
}
